{extend name="common/base" /}

{block name="style"}
<link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm-extend.css">

<style>
    body{
        background: #F5F5F5;
        touch-action: none;
        overflow-y: scroll;
    }

</style>
{/block}
{block name="body"}
<div class="jzzf-mains">
    <div class="zfcg-top">
        {if ($order_info['status']==0)}
        <img src="__CDN__/html/img/hz-img5.png" class="cg-top-img">
        <p class="cg-top-ps">支付失败</p>
        <p class="cg-top-ps2">请刷新页面或到我的订单查看</p>
        <a href="{:url('detail',['id'=>$order_info['order_id']])}"><div class="cg-top-div">继续逛逛</div></a>
        {/if}
        {if ($order_info['status']==1)}
        <img src="__CDN__/html/img/hz-img28.png" class="cg-top-img">
        <p class="cg-top-ps">支付成功</p>
        <p class="cg-top-ps2">请保持手机畅通，平台会尽快给您审核，并安排布放零食</p>
        <a href="{:url('Index/index')}"><div class="cg-top-div">返回首页</div></a>
        {/if}

        {if ($order_info['status']==10)}
        <img src="__CDN__/html/img/hz-img13.png" class="cg-top-img">
        <p class="cg-top-ps">付款成功</p>
        {if ($order_info['type']==1)}
        <p class="cg-top-ps2">请从盒子内拿走对应的商品</p>
        {else/}
        <p class="cg-top-ps2">正在派送，请稍等......</p>
        {/if}
        <a href="{:url('Index/index')}"><div class="cg-top-div">继续逛逛</div></a>
        {/if}
    </div>
    <div class="swiper-container con-top">
        <div class="swiper-wrapper">  
            <!-- Slides -->
            {foreach $banner_list as $vo }
            <div class="swiper-slide">
                {if ($vo['jump_type']==1)}
                <a href="{$vo.ad_link}">
                    {/if}
                    <img src="__OSSCDN__{$vo.ad_img}" />
                    {if ($vo['jump_type']==1)}
                </a>
                {/if}
            </div>
            {/foreach}                                               
        </div>  
    </div>             
</div>
{/block}
{block name="script"}
<script src="__CDN__/html/js/swiper.js"></script>
<script>
    $(".swiper-container").swiper({
        loop: true,
        autoplay: 3000
    });
</script>
{/block}